package cn.fl.project.service;

import java.util.List;
import java.util.Map;

import cmm.mid.core.framework.page.KeyValueVO;
import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.fl.project.vo.PrjQuatPrpsCfgMVO;
import net.sf.json.JSONArray;

/**
 * @Description: 项目报价方案配置主信息表 客户端服务层接口
 * @Description: 持久层方法名称前缀：新增：insert* 删除：delete* 修改：update* 批量：batch* 查询对象：select* get* find* 查询集合：select*
 * @Description: 业务层方法名称前缀：新增：add* 删除：remove* 修改：modify* 查询对象：select* get* 批量：batch* 查询集合：search*
 */
public interface IPrjQuatPrpsCfgMService {
	
	/**
	 * 获取唯一对象
	 * @param id 主键
	 * @return 对象DTO
	 */
	public PrjQuatPrpsCfgMVO selectById(Long id)throws BaseException;
	
	/**
	 * 新增
	 * @param entity
	 * @return
	 */
    public Long add(PrjQuatPrpsCfgMVO entity) throws BaseException;

    /**
     * 删除
     * @param id
     * @return
     */
    public boolean removeById(Long id)throws BaseException;
    
    /**
     * 删除
     * @param ids
     * @return
     */
    public boolean removeByIds(List<Long> ids)throws BaseException;

    /**
     * 修改
     * @param entity
     * @return
     */
    public boolean modify(PrjQuatPrpsCfgMVO entity)throws BaseException;
    
    /**
     * 启用
     * @param entity 
     * @return boolean
     */
    public boolean modifyEnAblePrjQuatPrpsCfgM(PrjQuatPrpsCfgMVO entity) throws BaseException;
    
    /**
     * 禁用
     * @param entity 
     * @return boolean
     */
    public boolean modifyDisAblePrjQuatPrpsCfgM(PrjQuatPrpsCfgMVO entity) throws BaseException;

    /**
     * 分页查询所有
     * @param page
     * @return
     */
    public Pager searchListPage(Pager page)throws BaseException;
    
    /**
     * 获取方案政策标准下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchPrpsTypCdList() throws BaseException;
    
    /**
     * 获取方案产品类型下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchPrpsPrdTypCdList() throws BaseException;
    
    /**
     * 获取租赁期数单位下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchLsPdUntCdList() throws BaseException;
    
    /**
     * 获取支付方式下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchPayWayCdList() throws BaseException;
    
    /**
     * 下拉数据-供应商返利政策
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchSplRebPolicyList() throws BaseException;
    
    /**
     * 获取保证金处理方式下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchDpstHdlWayCdList() throws BaseException;
    
    /**
     * 获取租赁期满处理方式下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchExpHdlWayCdList() throws BaseException;

    /**
     * 获取政策下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchPolicyTypeCdList() throws BaseException;

    /**
     * 获取一城一策下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchOneCityOnePolicyTypeCdList(String orgCd) throws BaseException;
    
    /**
     * 获取是否下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchYesOrNoCdList() throws BaseException;

    /**
     * 获取是否包牌下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchIsBpListList() throws BaseException;
    
    /**
     * 获取车身颜色下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchCarClList() throws BaseException;
    
    /**
     * 获取费用类型下拉框数据
     * @return
     * @throws BaseException
     */
    public JSONArray searchFeeTypCdList() throws BaseException;
    
    /**
     * 获取费用计算基数下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchCalBaseCdList() throws BaseException;
    
    /**
     * 获取费用计入方式下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchCntWayCdList() throws BaseException;
    
    /**
     * 查询事业部下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchBuOrgCdList()throws BaseException;
    /**
	 * 查询可用的项目方案
	 * @param prjId
	 * @return
	 * @throws BaseException
	 */
    public Pager  searchIsUsePrjQuatPrpsCfgMList(Pager page,Long prjId) throws BaseException;
    
    /**
	 * 获取小数位数
	 * @return
	 * @throws BaseException
	 */
	public 	Map<String,String> getDecimalDigitsByBuOrgCode(String sysCd,String orgCd)throws BaseException;

    /**
     * 获取验车方式下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchVehCheckCdList () throws BaseException;
}
